package edu.cuit.jead.mynetdisk.exception;

import edu.cuit.jead.mynetdisk.common.Code;

public class AppException extends  RuntimeException{
    private int code = 500;
    private String msg = "服务器异常";


    public AppException(Code code){
        super();
        this.code = code.getCode();
        this.msg = code.getMsg();

    }

    public AppException(int code,String msg){
        super();
        this.code = code;
        this.msg = msg;

    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
